package com.freelancer.musicinstruction.tasks;

import com.freelancer.musicinstruction.activity.interfaces.ServiceInvokable;
import com.freelancer.musicinstruction.services.impl.youtube.YoutubeSearchModel;
import com.freelancer.musicinstruction.services.interfaces.ISearchServices;

public class YoutubeSearchTask extends ServiceInvokableTask<ServiceInvokable>{
	
	private static final String TAG = YoutubeSearchTask.class.getSimpleName();
	
	protected String URL;
	protected ISearchServices yss;
	
	public YoutubeSearchTask(ServiceInvokable activity, String URL, 
			ISearchServices yss) {
		super(activity);
		this.URL = URL;
		this.yss = yss;
		
	}

	@Override
	protected void doRunService() {
		yss.search( URL );
		
	}

}
